<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>ajax解决跨域问题</title>
	<script src="https://cdn.bootcss.com/jquery/1.10.2/jquery.min.js" type="text/javascript"></script>
</head>
<body>
<script>
	$.ajax({
		type:"POST",
		url:"http://www.wpf.com/ceshi.php",
		data:{
			"url":"http://www.wpf.com/ceshi.php",
			"username":"admin",
			"password":"admin",
		},success:function(data){
			var result=eval("("+data+")");
			console.log(result);
		}

	})
</script>
</body>
</html>